package com.fyl.principles.demo3.after;


public class ComputerDemo {
    public static void main(String[] args) {
        HardDisk xiJieHardDisk = new XiJieHardDisk();
        Cpu intelCpu = new IntelCpu();
        Memory kingstonMemory = new KingstonMemory();

        Computer computer = new Computer();
        computer.setCpu(intelCpu);
        computer.setMemory(kingstonMemory);
        computer.setHardDisk(xiJieHardDisk);
        computer.run();
    }
}
